package eu.pago.chat.gui;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class StatusFrame extends JFrame {

	private static final long serialVersionUID = 1L;

	public StatusFrame() {
		this.setLayout(new BorderLayout());
		add(createCombo(), BorderLayout.NORTH);
		add(createSetStatusButton(), BorderLayout.CENTER);
	}

	public JPanel createCombo() {
		JPanel comboPanel = new JPanel();
		JLabel setStatusLabel = new JLabel("Choose status:");
		comboPanel.add(setStatusLabel);
		JComboBox<EStatus> statusCombo = new JComboBox<EStatus>();
		statusCombo.addItem(EStatus.AVAILABLE);
		statusCombo.addItem(EStatus.BUSY);
		comboPanel.add(statusCombo);
		return comboPanel;
	}

	public JPanel createSetStatusButton() {
		JPanel setStatusPanel = new JPanel();
		JButton setStatusButton = new JButton("Set Status");
		setStatusPanel.add(setStatusButton);
		return setStatusPanel;
	}
}
